<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SemOpt: src/SetArguments.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">SemOpt
   &#160;<span id="projectnumber">0.2alpha5-SCC</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('SetArguments_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">src/SetArguments.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * SetArguments.h</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  Created on: 3 Jun 2013</span>
<a name="l00005"></a>00005 <span class="comment"> *      Author: geryo</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef SETARGUMENTS_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define SETARGUMENTS_H_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;iterator&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00016"></a>00016 <span class="comment">//usato dall&#39;algoritmo di tarjan</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00018"></a>00018 <span class="comment">//hash table use</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;unordered_map&gt;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="keyword">using namespace </span>std;
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;Argument.h&quot;</span>
<a name="l00024"></a>00024 
<a name="l00028"></a><a class="code" href="classSetArgumentsIterator.html">00028</a> <span class="keyword">class </span><a class="code" href="classSetArgumentsIterator.html" title="Class defining a const iterator for the elements of a set of arguments.">SetArgumentsIterator</a> : <span class="keyword">public</span> map&lt;string, Argument *&gt;::const_iterator
<a name="l00029"></a>00029 {
<a name="l00030"></a>00030 <span class="keyword">public</span>:
<a name="l00031"></a>00031         <a class="code" href="classSetArgumentsIterator.html" title="Class defining a const iterator for the elements of a set of arguments.">SetArgumentsIterator</a>() : map&lt;string, Argument *&gt;::const_iterator() {};
<a name="l00032"></a>00032         <a class="code" href="classSetArgumentsIterator.html" title="Class defining a const iterator for the elements of a set of arguments.">SetArgumentsIterator</a>(map&lt;string, Argument *&gt;::const_iterator it) : map&lt;string, Argument *&gt;::const_iterator(it) {};
<a name="l00033"></a>00033         <a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a> ** operator-&gt;() {
<a name="l00034"></a>00034                 <span class="keywordflow">return</span> (<a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a> ** <span class="keyword">const</span>)&amp;(map&lt;string, Argument *&gt;::const_iterator::operator-&gt;()-&gt;second);
<a name="l00035"></a>00035         };
<a name="l00036"></a>00036         <a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a>* operator*() {
<a name="l00037"></a>00037                 <span class="keywordflow">return</span> map&lt;string, Argument *&gt;::const_iterator::operator*().second;
<a name="l00038"></a>00038         }
<a name="l00039"></a>00039         <a class="code" href="classSetArgumentsIterator.html" title="Class defining a const iterator for the elements of a set of arguments.">SetArgumentsIterator</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classSetArgumentsIterator.html" title="Class defining a const iterator for the elements of a set of arguments.">SetArgumentsIterator</a> &amp;param) {
<a name="l00040"></a>00040                 map&lt;string, Argument *&gt;::const_iterator::operator = (param);
<a name="l00041"></a>00041                 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00042"></a>00042         }
<a name="l00043"></a>00043 };
<a name="l00044"></a>00044 
<a name="l00045"></a><a class="code" href="classSetArguments.html">00045</a> <span class="keyword">class </span><a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>
<a name="l00046"></a>00046 {
<a name="l00051"></a><a class="code" href="classSetArguments.html#aaae0e0a7aeffe21d3ec1e0254f4bf364">00051</a>         map&lt;string, Argument *&gt; <a class="code" href="classSetArguments.html#aaae0e0a7aeffe21d3ec1e0254f4bf364">arguments</a>;
<a name="l00083"></a><a class="code" href="classSetArguments.html#a2214277313b65e0e19f63c5ccddc350e">00083</a>         map&lt;int, string&gt; <a class="code" href="classSetArguments.html#a2214277313b65e0e19f63c5ccddc350e">key_assoc</a>;
<a name="l00084"></a>00084 <span class="keyword">public</span>:
<a name="l00085"></a>00085         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>();
<a name="l00086"></a>00086         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>(<a class="code" href="classAF.html" title="Class encompassing an Argumentation Framework.">AF</a> af, <span class="keywordtype">string</span> names[], <span class="keywordtype">int</span> length);
<a name="l00087"></a>00087         <span class="keywordtype">void</span> add_Argument(<a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a> *);
<a name="l00088"></a>00088         <span class="keyword">virtual</span> ~<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>();
<a name="l00089"></a>00089         <a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a> *getArgumentByName(<span class="keywordtype">string</span>);
<a name="l00090"></a>00090         <a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a> *getArgumentByNumber(<span class="keywordtype">int</span> num);
<a name="l00091"></a>00091         <span class="keywordtype">int</span> cardinality() <span class="keyword">const</span>;
<a name="l00092"></a>00092         <span class="keywordtype">bool</span> empty();
<a name="l00093"></a>00093         <a class="code" href="classSetArgumentsIterator.html" title="Class defining a const iterator for the elements of a set of arguments.">SetArgumentsIterator</a> begin() <span class="keyword">const</span>;
<a name="l00094"></a>00094         <a class="code" href="classSetArgumentsIterator.html" title="Class defining a const iterator for the elements of a set of arguments.">SetArgumentsIterator</a> end() <span class="keyword">const</span>;
<a name="l00095"></a>00095         <span class="keywordtype">bool</span> exists(<a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a> *);
<a name="l00096"></a>00096         <span class="keywordtype">bool</span> is_subset_equal(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *);
<a name="l00097"></a>00097         <span class="keywordtype">bool</span> is_subset(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099         <span class="keywordtype">void</span> synchWithSet(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* otherset);
<a name="l00100"></a>00100 
<a name="l00101"></a>00101         vector&lt;SetArguments*&gt; getSingletons();
<a name="l00102"></a>00102         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getArgumentAttackersInSet(<a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a>*);
<a name="l00103"></a>00103         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getArgumentAttacksInSet(<a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a>*);
<a name="l00104"></a>00104         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getAllAttackers();
<a name="l00105"></a>00105         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getAllAttacks();
<a name="l00106"></a>00106         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getAllAttackersInSet();
<a name="l00107"></a>00107         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getAllAttacksInSet();
<a name="l00108"></a>00108         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getSubsetAttackedBy(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>*);
<a name="l00109"></a>00109         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getSubsetAttacks(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>*);
<a name="l00110"></a>00110         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getExternalAttackers(<span class="keywordtype">void</span>);
<a name="l00111"></a>00111         <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>* getExternalAttacks(<span class="keywordtype">void</span>);
<a name="l00112"></a>00112         <span class="keywordtype">void</span> setSafeRestrict(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>*, <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>*);
<a name="l00113"></a>00113         <span class="keywordtype">void</span> merge(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>*, <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *);
<a name="l00114"></a>00114         <span class="keywordtype">void</span> intersect(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *, <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *);
<a name="l00115"></a>00115         <span class="keywordtype">void</span> setminus(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *, <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *);
<a name="l00116"></a>00116         <span class="keywordtype">void</span> <span class="keyword">remove</span>(<a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a> *);
<a name="l00117"></a>00117         <span class="keywordtype">void</span> remove_All_Arguments();
<a name="l00118"></a>00118         <span class="keywordtype">void</span> clean();
<a name="l00119"></a>00119         <span class="keywordtype">void</span> clone(<a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> *);
<a name="l00120"></a>00120         <span class="keywordtype">bool</span> equal(<span class="keyword">const</span> <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> &amp;other) <span class="keyword">const</span>;
<a name="l00121"></a>00121         <span class="keywordtype">bool</span> <a class="code" href="Labelling_8cpp.html#ac4e0bfe6bf8d4ca2df0ffffe90d87f9e" title="compare two Labelling according to their list.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> &amp;other) <span class="keyword">const</span>;
<a name="l00122"></a>00122         <span class="keywordtype">bool</span> <a class="code" href="Labelling_8cpp.html#a51bee584f2dc4685db614fec131cc1c3" title="computes the opposite of the operator ==">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a> &amp;other) <span class="keyword">const</span>;
<a name="l00123"></a>00123         <span class="keywordtype">void</span> printNodeRelations(<span class="keywordtype">void</span>);
<a name="l00124"></a>00124         <span class="keywordtype">void</span> printGraph(<span class="keywordtype">void</span>);
<a name="l00125"></a>00125         <span class="keywordtype">bool</span> graphHasEdges(<span class="keywordtype">void</span>);
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="keyword">private</span>:
<a name="l00128"></a>00128         <span class="keywordtype">void</span> strongConnected(<a class="code" href="classArgument.html" title="Class representing an Argument.">Argument</a>*, <span class="keywordtype">int</span>*, vector&lt;Argument*&gt;*, vector&lt;SetArguments*&gt;*, <span class="keywordtype">int</span>*, <span class="keywordtype">int</span>*);
<a name="l00129"></a>00129 };
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 ostream&amp; <a class="code" href="Argument_8cpp.html#a76ef732a0021f3ac6698582cf94a079e">operator&lt;&lt;</a>(ostream&amp; , <span class="keyword">const</span> <a class="code" href="classSetArguments.html" title="Class encompassing a set of arguments.">SetArguments</a>&amp; );
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="preprocessor">#endif </span><span class="comment">/* SETARGUMENTS_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>SetArguments.h</b>      </li>

    <li class="footer">Generated on Fri Jan 17 2014 11:47:51 for SemOpt by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
